import socket

def main():
    client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    client.connect(("127.0.0.1", 9999))
    
    username = input("用户名: ")
    password = input("密码: ")
    license_type = input("license type: ")
    
    request = f"LICENSE_REQUEST:{username}:{password}:{license_type}"
    client.send(request.encode('utf-8'))
    
    response = client.recv(1024).decode('utf-8')
    print(f"Response: {response}")
    
    client.close()

if __name__ == "__main__":
    main()
